home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / BCEXAMS.PAK / BIDSMAKE.GEN next >
Text File  |  1997-05-06  |  3KB  |  115 lines

  1. #----------------------------------------------------------------------------
  2. # Borland Class Library
  3. # Copyright (c) 1993, 1997 by Borland International, All Rights Reserved
  4. #
  5. # $Revision:   10.5  $
  6. #
  7. # Extensions to makefile.gen, adding Classlib definitions and libraries
  8. #----------------------------------------------------------------------------
  9.  
  10. !ifndef SYSTEMS
  11. SYSTEMS = WIN16 DOS16 CON32 WIN32
  12. !endif
  13.  
  14. #
  15. # 32 bit bids examples are CON32 by default
  16. # This may be overridden in the local makefile
  17. #
  18. !ifndef SYSTEM
  19. ! if $d(CON32) || "$(MODEL)"=="f"
  20. SYSTEM  = CON32
  21. ! endif
  22. !endif
  23.  
  24. !if "$(MODEL)"=="t"
  25. MT = 1
  26. !endif
  27.  
  28. !if $d(VCL)
  29. MODEL=t
  30. !endif
  31.  
  32. #
  33. # If no model has been specified, use large so we don't default to DLL
  34. # which doesn't work with easywin apps
  35. #
  36. !if !$d(MODEL) && !$d(CON32) && !$d(WIN32) && "$(SYSTEM)" != "CON32" && "$(SYSTEM)" != "WIN32"
  37. MODEL=l
  38. !endif
  39.  
  40. #----------------------------------------------------------------------------
  41. # dir & search paths
  42. #----------------------------------------------------------------------------
  43.  
  44. !ifndef BIDSLIBDIR
  45. BIDSLIBDIR = $(BCLIBDIR)
  46. !endif
  47.  
  48. !ifndef BIDSINCDIR
  49. BIDSINCDIR = $(BCINCDIR)
  50. !elif "$(BIDSINCDIR)" != "$(BCINCDIR)"
  51. SYSINCPATH = $(BIDSINCDIR)
  52. !endif
  53.  
  54. SYSLIBS = 1   # force defined, will be reset after include of makefile.gen
  55. !include $(BCEXAMPLEDIR)\makefile.gen
  56.  
  57. #----------------------------------------------------------------------------
  58. # additional libraries for BIDS
  59. #----------------------------------------------------------------------------
  60.  
  61. !ifdef USEDLL
  62. CFLAGS = $(CFLAGS) -D_BIDSDLL
  63. !endif
  64.  
  65. # determine library name suffix based upon model
  66. #
  67. !if $(_32BIT_)
  68.  
  69. !if $d(BIDSLIBDIR) && ("$(BIDSLIBDIR)" != "$(BCLIBDIR)")
  70.  LIBRARYPATH = $(BIDSLIBDIR);$(LIBRARYPATH)
  71. !endif
  72.  
  73. ! ifdef USEDLL             # link BIDS dynamically
  74. !   if $d(VCL)
  75.     _SFX_ = vi
  76. !   elif $d(MT)
  77.     _SFX_ = ti
  78. !   else
  79.     _SFX_ = fi
  80. !   endif
  81. ! else                     # link to BIDS statically
  82. !   if $d(VCL)
  83.     _SFX = v
  84. !   elif $d(MT)
  85.     _SFX_ = t
  86. !   else
  87.     _SFX_ = f
  88. !   endif
  89. ! endif
  90. !else #WIN16 or DOS16
  91. ! ifdef USEDLL
  92. _SFX_ = i
  93. ! else
  94. _SFX_ = $(MODEL)
  95. ! endif
  96. !endif
  97. #
  98. # select suffix for alternate library if diagnostics enabled
  99. #
  100. !if $(DIAGS)
  101. ! if $d(USEDLL) || $(_32BIT_)
  102. BIDSSFX = d$(_SFX_)
  103. ! else # 16-bit static
  104. BIDSSFX = db$(_SFX_)  #use 'db' for 16 bit static for compatibility
  105. ! endif
  106. !else # no diags
  107. BIDSSFX = $(_SFX_)
  108. !endif
  109. #
  110. # add BIDS library before other libraries
  111. #
  112. SYSLIBS = $(BIDSLIBDIR)\bids$(BIDSSFX)
  113.  
  114. $(MAKEFILE) :: $(BIDSLIBDIR)\bids$(BIDSSFX).lib
  115.